package com.wangjc.mongo.service;

import com.wangjc.mongo.entity.MongoTextInfo;
import org.springframework.stereotype.Component;

/**
 * 这里的dbName,tableName建议以枚举或者常量的方式统一存放，以便全局更改，
 * 此处是为了方便快捷省事
 * @author wangjc
 * @title: MongoText
 * @projectName wangjc-mongo
 * @description: TODO
 */
@Component
public class MongoTextService extends MongoBaseService<MongoTextInfo> {

    @Override
    public String getDbName() {
        return "text";
    }

    @Override
    public String getTableName() {
        return "text_info";
    }

    @Override
    public Class<MongoTextInfo> getClazz() {
        return MongoTextInfo.class;
    }
}
